package com.bw.zhuangao5___day002.Apk;

import android.app.Application;
import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig;
import com.uuzuche.lib_zxing.activity.ZXingLibrary;

/**
 * create by ertu
 * create on 2021/9/9
 * description
 */
public class App extends Application {

    public static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        context=this;
        ARouter.openLog();
        ARouter.openDebug();
        ARouter.init(this);
        //初始化Zxing库
        ZXingLibrary.initDisplayOpinion(this);
        UMConfigure.init(this,"5a12384aa40fa3551f0001d1"
                ,"umeng",UMConfigure.DEVICE_TYPE_PHONE,"");//58edcfeb310c93091c000be2 5965ee00734be40b580001a0
        // QQ设置
        PlatformConfig.setQQZone("101830139","5d63ae8858f1caab67715ccd6c18d7a5");
        PlatformConfig.setQQFileProvider("com.tencent.sample2.fileprovider");
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        ARouter.getInstance().destroy();
    }
}
